import { createRouter, createWebHistory } from 'vue-router';
import Home from '../components/Home.vue';
import A from '../components/A.vue';
import B from '../components/B.vue';
import C from '../components/C.vue';

let route = [
    {
        path:'/',
        name:'home',
        component:Home,
        children:[
            {
                path:'/',
                name:'a',
                component:A,
            },
            {
                path:'/b',
                name:'b',
                component:B,
            },
            {
                path:'/c',
                name:'c',
                component:C,
            }
        ]
    }
]


const router = createRouter({
    history:createWebHistory(),
    routes:route
})

export default router;